<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block data-th-replace="/adminlte/base::base-head"></th:block>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
	<div class="wrapper">
		<th:block data-th-replace="/adminlte/base::base-navbar"></th:block>
		<th:block data-th-replace="/adminlte/base::base-main-sidebar"></th:block>
		<div class="content-wrapper">
			<th:block data-th-replace="/adminlte/base::base-content-header"></th:block>
			<section class="content">
				<div class="container-fluid">
					<div class="row">
						<div class="col-sm-12">
							<div class="card">
								<div class="card-header">
									<div class="card-title">通讯密钥设置</div>
								</div>
								<div class="card-body">
									<div class="form-group">
										<label class="col-sm-12 control-label">用户ID</label>
										<div class="col-sm-12">
											<label class="form-control" th:utext="${fileClient.userId}" readonly="readonly"></label>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-12 control-label">通信密钥（16位）</label>
										<div class="col-sm-12">
										    <label class="form-control" th:utext="${fileClient.aesKey}" readonly="readonly"></label>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-12 control-label">密钥偏移（16位）</label>
										<div class="col-sm-12">
										    <label class="form-control" th:utext="${fileClient.aesIv}" readonly="readonly"></label>
										</div>
									</div>
									<div class="row justify-content-center">
										<button type="button" class="btn btn-info" style="width: 200px;" onclick="put('/files/clients', undefined, (status, data, headers)=>toast.success(getMessage(headers), reload))">随机生成</button>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</section>
		</div>
		<th:block data-th-replace="/adminlte/base::base-footer"></th:block>
		<th:block data-th-replace="/adminlte/base::base-control-sidebar"></th:block>
	</div>
</body>
</html>